from __future__ import absolute_import

from proj.celery import app

@app.task
def add(x,y):
  return x+y

@app.task
def mul(x,y):
    return x*y

@app.task
def xsum(numbers):
    return sum(numbers)

@app.task
def st():
    import time
    return time.strftime("%Y/%m/%d %H:%m:%S")

@app.task
def longTask():
    import time
    time.sleep(10)
    return st()
